<%
  /*
     文件名称：添加管理员
     作者：庞聚文
     创建时间：2010-02-03
     修改时间：2010-02-03
  */
%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" import ="s2jsp.bysj.biz.*,s2jsp.bysj.entity.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'addManager.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="../css/admin.css">

<script language="javascript">
  /*输入验证*/
  function validate(){
   if(document.addManager.managerName.value == ""){
    alert("请输入管理员名称！");
    document.addManager.managerName.focus();
    return false;
   }else if(document.addManager.passWord.value == ""){
    alert("请输入密码！");
    document.addManager.passWord.focus();
    return false;
   }else if(document.addManager.passWord2.value == ""){
    alert("请输入确认密码！");
    document.addManager.passWord2.focus();
    return false;
   }else if(document.addManager.passWord.value != document.addManager.passWord2.value){
    alert("两次输入密码不一致！");
    document.addManager.passWord.focus();
    return false;
   }else{
     return true;
   }
  }
</script>
  </head>
  
  <body>
  <div style="margin-left:150px; margin-top:20px;width:620px;">
  <%--     管理员-添加      --%>
   <form name="addManager" method="post" action="../manage/addManager.jsp" onSubmit="return validate()">
    <table width="500px" bgcolor="#F5F5DC" height="135" class="table">
	  <tr>
        <td colspan="2" style="background-color:#6699FF; color:#FFFFFF;"><b>添加管理员</b></td>
      </tr>
      <tr>
        <td width="129">&nbsp;管理员名称：</td>
        <td width="359"><input type="text" name="managerName" style="width:150px;height:18px; border-left:groove"></td>
      </tr>
      <tr>
        <td>&nbsp;密码：</td>
        <td><input type="password" name="passWord" style="width:150px;height:18px;border-left:groove"></td>
      </tr>
      <tr>
        <td height="20px">&nbsp;确认密码：</td>
        <td><input type="password" name="passWord2" style="width:150px;height:20px;border-left:groove"></td>
      </tr>
      <tr>
        <td height="30px" colspan="2" align="center"><br>
        <input type="submit" name="btn" value="提交" class="btn">&nbsp;&nbsp;<input type="reset" value="重设" class="btn"></td>
      </tr>
    </table>
   </form>
   </div>
  </body>
</html>
